package com.example.mq.rabbitmq.controller;

import com.example.mq.rabbitmq.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xyh
 * @description
 * @date 2021/3/31 15:38
 */
@RestController
public class TestController {

    @Autowired
    private IService service;

    @RequestMapping("/sendMsg")
    public void sendMsg(String message,String key){

        service.sendMsg(message,key);
    }
}
